package com.G_CN06.mvc.service;

import com.G_CN06.commonUtil.commonResultConfig.CommonResult;
import com.G_CN06.mvc.entity.ChoiceQuestion;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Huang
 * @since 2022-11-15
 */
public interface ChoiceQuestionService extends IService<ChoiceQuestion> {

    CommonResult saveForTeacher(ChoiceQuestion choiceQuestion, HttpSession session);

    CommonResult getConditionalQuestion(String searchString);

    List<ChoiceQuestion> getRandomQuestions(int numOfChoiceQuestions);
}
